/*********************\
* Author:Dzlua
* QQ:505544956
* Time:2017/04/15
\**********************/
#ifndef __LUA_DATETIME_H__
#define __LUA_DATETIME_H__
#pragma once

#include "../Text/LuaLabel.h"

namespace DuiLib {

class LuaDateTime : public LuaLabel
{
    SDLUA_CLASS_DECLARE(LuaDateTime);

    int GetTime(LuaState *L);
    int SetTime(LuaState *L);

    void SetReadOnly(bool bReadOnly);
    bool IsReadOnly();

    void UpdateText();
};

}

#endif //__LUA_DATETIME_H__